/*
 * TODO: Enter copyright statement here.
 */
package com.googlecode.wcbunittests.helloworld.element;

import nl.gx.webmanager.authorization.AuthorizationService;
import nl.gx.webmanager.wcb.elementtype.impl.SimpleElementComponent;

/**
 * Implementation of the HelloWorld element component. It overrides the simple
 * element component in order to get the authorization service injected.
 */
public class HelloWorldElementComponent extends SimpleElementComponent {
    // Authorization service, injected by the framework
    private AuthorizationService myAuthorizationService;

    /**
     * Returns the authorization service.
     * @return the authorization service
     */
    public AuthorizationService getAuthorizationService() {
        return myAuthorizationService;
    }
}
